package com.db.domain.bank;

public class CheckingAccount extends AbstractAccount {
    private double overdraft;

    public CheckingAccount(double amount, double overdraft) {
        super(amount);
        this.overdraft = overdraft;
    }

    @Override
    public double maximumWithdrawToAccount() {
        return overdraft + getBalance();
    }

}
